
 begintownscript;

 variables;

 int i,j,k,r1,choice;

 body;

 beginstate INIT_STATE;
	set_level(20,35);
	set_level(21,35);

break;

 beginstate START_STATE;
	if (get_flag(3,0) == 0) {
		message_dialog("You are greeted by a handful of goblins at the entrance of the cavern. They do not seem frightened of you; on the contrary, they jump eagerly up and down and grab their weapons.","Hopefully, within this cave, you can find some clues on what's making the goblins so strong. They can't just be naturally powerful.");
		set_flag(3,0,1);
}

break;

 beginstate EXIT_STATE;

break;

 beginstate 10;
	if (get_flag(3,0) == 0) {
		message_dialog("You are greeted by a handful of goblins at the entrance of the cavern. They do not seem frightened of you, on the contrary, they jump eagerly up and down and grab their weapons.","Hopefully, within this cave, you can find some clues on what's making the goblins so strong. They can't just be naturally powerful.");
		set_flag(3,0,1);
}
break;

 beginstate 11;
	if (get_flag(3,1) == 0) {
		message_dialog("The stench coming out from this part of the cave is much stronger than the rest of the caverns. The goblins have tossed all of their trash here, but that alone does not explain the smell.","Peeking deeper into the cavern reveals that the goblins have thrown several bodies here. Some bodies are wearing uniforms of Empire soldiers, but most are just civilians. No doubt this is the faith of the caravan drivers and travelers.");
		set_flag(3,1,1);
}
break;

 beginstate 12;
	if (get_flag(3,2) == 0) {
		message_dialog("Goblins may be dumb but they're not entirely mindless. They have been known to record their history on plinths or monoliths. This appears to be one of those _history rooms_.","While not epic, learning about the history of this tribe could be useful, especially the recent history.");
		set_flag(3,2,1);
}
break;

 beginstate 13;
	if (get_flag(3,3) == 0) {
		message_dialog("There's either been a cave-in or then the cave has been brought down on purpose. You try to move the rocks but they are too heavy. You need to find another way through.","");
		set_flag(3,3,1);
}
break;

 beginstate 14;
	if (get_flag(3,4) == 0) {
		message_dialog("Ahead you see a chasm leading deeper in the mountains. You approach it when suddenly there is loud grunting coming from it. Two goblins, glowing brighter than ever, arise from the chasm.","They do not seem surprised seeing you. They attack you with maddened zeal, as if they are blinded by their power.");
		activate_hidden_group(1);
		add_char_to_group(20,1);
		add_char_to_group(21,1);
		set_flag(3,4,1);
}
break;

 beginstate 15;
	move_to_new_town(4,16,6);
break;